package com.example.pickupclosefirstdemo.fragment.interflowfirstfragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.Nullable;

import com.example.pickupclosefirstdemo.R;
import com.example.pickupclosefirstdemo.databinding.FragmentInterflowFirstBinding;
import com.example.pickupclosefirstdemo.fragment.BaseFragment;
import com.example.pickupclosefirstdemo.fragmentinterflowactivity.InterflowActivity;

public class InterflowFirstFragment extends BaseFragment<FragmentInterflowFirstBinding> {

    @Override
    public int initContentView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return R.layout.fragment_interflow_first;
    }

    @Override
    public int initVariableId() {
        return 0;
    }

    @Override
    protected void initData() {
        binding.setFragment(this);
    }

    public void leftOnClick(View view){
        switch (view.getId()){
            case R.id.tvModuleFirstCall:
                InterflowActivity activity = (InterflowActivity)getActivity();
                activity.getActStr("左侧点击");
                break;
                default:
        }
    }
}
